<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>电话本</title>
  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">
  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" href="http://cdn.amazeui.org/amazeui/2.2.1/css/amazeui.min.css">
  <link rel="stylesheet" href="../addons/thinkidea_phonebook/amaze/css/app.css">
  <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="../addons/thinkidea_phonebook/amaze/assets/js/jquery.min.js"></script>
    <!--<![endif]-->
    <!--[if lte IE 8 ]>
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
  <![endif]-->
  <script src="../addons/thinkidea_phonebook/amaze/assets/js/amazeui.min.js"></script>
  <script src="../addons/thinkidea_phonebook/amaze/assets/js/handlebars.min.js"></script>
</head>
<body>
    <!-- 头部 -->
    <header class="am-topbar am-topbar-inverse am-topbar-fixed-top">
        <ul class="am-avg-sm-3">
             <li class="am-text-left" style="padding:10px 0 0 5px"></li>
             <li class="am-text-center" style="padding-top:10px;font-size: 20px;">掌上通讯录</li>
        </ul>
    </header>
    
    <!-- 搜索框 -->
    <div style="margin-top:5px">
    	<div style="padding-left:0px">
		    <form  action="{php echo $this->createMobileUrl('ListInfo');}" class="am-form" method="POST" data-am-validator>
		    	<div class="am-u-sm-10" style="padding-left:0;padding-right:0">
		    		<input type="text" name="keyword" class="am-input-lg" placeholder="输入关键词">
		    	</div>
		    	<div class="am-u-sm-2" style="padding-left:0">
		    		<input type="submit" style="height:46px;" style="height:46px;"  type="submit" class="am-btn am-btn-primary" value="搜索" required />
		    	</div>
			</form>
		</div>
	</div>
    
    <!-- 按所有分类 -->
    <div class="am-btn am-btn-block am-btn-success am-text-left am-icon-rss-square am-text-lg" style="margin-bottom:2px">&nbsp;&nbsp;按分类 </div>
    <div class="am-panel-group" id="accordion">
        {loop $parents $key $parent}
        <div class="am-panel am-panel-default">
          <div class="am-panel-hd">
            <h2 class="am-panel-title am-text-primary am-text-lg" data-am-collapse="{parent: '#accordion', target: '#category-{$key}'}">
              <strong>{$parent['name']}</strong>
            </h2>
          </div>
          <div id="category-{$key}" class="am-panel-collapse am-collapse {if $key == 0}am-in{/if}">
            <div class="am-panel-bd">
                <ul class="am-avg-sm-{$colspan} am-list">
                  {loop $parent['sub'] $k $sub}
                  <li><a href="{php echo $this->createMobileUrl('ListInfo', array('cid' => $sub['id']))}">{$sub['name']}</a></li>
                  {/loop}
                </ul>
            </div>
          </div>
        </div>
        {/loop}
    </div>
    
    <!-- 按所有区域 -->
    <div class="am-btn am-btn-block am-btn-success am-text-left am-icon-rss-square am-text-lg" style="margin-top:5px; margin-bottom:2px">&nbsp;&nbsp;按区域 </div>
    <div class="am-panel-group" id="accordion">
        {loop $zoneparents $key $parent}
		<div class="am-panel am-panel-default">
		  <div class="am-panel-hd">
		    <h2 class="am-panel-title am-text-primary am-text-lg" data-am-collapse="{parent: '#accordion', target: '#zone-{$key}'}">
		      <strong>{$parent['name']}</strong>
		    </h2>
		  </div>
		  <div id="zone-{$key}" class="am-panel-collapse am-collapse {if $key == 0}am-in{/if}">
		    <div class="am-panel-bd">
		        <ul class="am-avg-sm-2 am-list">
		          {loop $parent['sub'] $k $sub}
		          <li><a href="{php echo $this->createMobileUrl('ListInfo', array('zoneid' => $sub['id']))}">{$sub['name']}</a></li>
		          {/loop}
		        </ul>
		    </div>
		  </div>
		</div>
		{/loop}
    </div>

</body>
</html>